<div class="modal-header">
    <h4 class="modal-title">{{title}}</h4>
</div>

<div class="modal-body">
    <form class="form-horizontal" name="addMaterialForm" novalidate ng-submit="ok()">
        <div class="form-group">
            <label class="col-sm-3 ">物料分类</label>
            <div class="col-sm-8">
                <ui-select ng-model="material.skuClass" theme="bootstrap"
                           on-select="selectSkuClass($select.selected);" required>
                    <ui-select-match placeholder="选择物料分类">{{$select.selected.classDescription}}</ui-select-match>
                    <ui-select-choices
                            repeat="skuClass in skuClasses | filter: $select.search">
                        <div ng-bind-html="skuClass.classDescription | highlight: $select.search"></div>
                    </ui-select-choices>
                </ui-select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">物料号</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.packCode"
                       placeholder="请输入物料号" required>
            </div>
            <div class="col-sm-3"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">SAP号</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.sku"
                        placeholder="请输入SAP号" required ng-disabled="edit">
            </div>
            <div class="col-sm-3"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">物料描述</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.skuName"
                        placeholder="请输入物料描述">
            </div>
            <div class="col-sm-3"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">英文名</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.englishName"
                        placeholder="请输入英文名">
            </div>
            <div class="col-sm-3"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">包装方式</label>
            <div class="col-sm-8">
                <ui-select ng-model="material.packMethod" theme="bootstrap"
                           on-select="selectPackMethod($select.selected);" required>
                    <ui-select-match placeholder="选择包装方式">{{$select.selected}}</ui-select-match>
                    <ui-select-choices
                            repeat="pack in packs | filter: $select.search">
                        <div ng-bind="pack | highlight: $select.search"></div>
                    </ui-select-choices>
                </ui-select>
            </div>
            <div class="col-sm-3"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">包装尺寸</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.packSize"
                        placeholder="请输入包装尺寸">
            </div>
            <div class="col-sm-3"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">重量</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.packWeight"
                        placeholder="请输入重量">
            </div>
            <div class="col-sm-3"></div>
        </div>
        <!--<div class="form-group">
            <label class="col-sm-3 ">简写</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.shortName"
                        placeholder="请输入简写">
            </div>
            <div class="col-sm-3"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">毛重</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.grossWeight"
                        placeholder="请输入毛重">
            </div>
            <div class="col-sm-3"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">净重</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.netWeight"
                        placeholder="请输入净重">
            </div>
            <div class="col-sm-3"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">长</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.skuLen"
                        placeholder="请输入长" >
            </div>
            <div class="col-sm-3"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">宽</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.skuWidth"
                        placeholder="请输入宽" >
            </div>
            <div class="col-sm-3"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 ">高</label>
            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="material.skuHeigth"
                        placeholder="请输入高">
            </div>
            <div class="col-sm-3"></div>
        </div>-->
    </form>
</div>

<div class="modal-footer">
    <div class="row">
        <div class="col-xs-4 col-xs-offset-1">
            <button class="btn btn-default btn-action" ng-click="cancel()">取 消</button>
        </div>
        <div class="col-xs-2"></div>
        <div class="col-xs-4">
            <button class="btn btn-primary btn-action" ng-disabled="loading||!addMaterialForm.$valid" ng-click="ok()">
                确 定
            </button>
        </div>
    </div>
</div>



